season = int(input('请输入季度:'))
season_start = (season - 1) * 3
season_end = season * 3
for month in range(season_start, season_end):
    print(str(month+1)+'月')
